﻿namespace ElencySolutions.ImageMap.Properties
{
    using System.Runtime.Serialization;

    [DataContract]
    [KnownType(typeof(HotSpot))]
    public class HotSpot
    {

        [DataMember]
        public int Left { get; set; }

        [DataMember]
        public int Top { get; set; }

        public HotSpot()
        {
            Left = 0;
            Top = 0;
        }

        public override string ToString()
        {
            return ImageMapHelper.SerializeObject(this);
        }

    }
}
